#include <bits/stdc++.h>
using namespace std;
int main()
{
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    printf("3\n19\n7\n1\n");
    return 0;
}
